<template>
  <div id="app">
    <h3 v-show="$route.name!='News'">备忘录记事本</h3>
    <div id="nav" v-show="$route.name!='News'">
      <router-link to="/" class="el-icon-collection">
       <p>首页</p>
      </router-link>
      <router-link to="/search" class="el-icon-search">
       <p>搜索</p>
      </router-link>
      <router-link to="/my" class="el-icon-s-custom">
       <p>我的</p>
      </router-link>
    </div>
    <router-view/>
  </div>
</template>
<script>
export default {
  
}
</script>
<style>
 *{
     margin: 0px;
     padding: 0px;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  height: 98vh;
  position: relative;
}

#nav {
  width: 100%;
  height: 40px;
  position: absolute;
  bottom: 0px;
}

#nav a {
  display: inline-block;
  text-decoration: none;
  width: 33%;
  height: 50px;
  font-size: 18px;
  font-weight: bold;
  color: #2c3e50;
}
#nav a p{
 margin: 0;
 margin-top: 5px;
}

#nav a.router-link-exact-active {
  color: #42b983;
}
h3{
  background-color: coral;
  line-height: 40px;
  height: 40px;
  color: #fff;
}
</style>
